class test {
	public static void main(String[] args) {
		Employee[] emp=new Employee[5];//creates array of objects w/c are references
			int n=10000;
			int m=10;
			for(int i=0;i<5;i++) {	//initializing the objects
			emp[i]=new Employee();	
			}
		for(int i=0;i<5;i++) {
			emp[i].id=m++;
			//emp[i].name={"ram","sham","ramesh","suresh","naveen"};
			emp[i].salary=n++;
			//emp[i].gender={'M','F','M','F','M'};
		}
		//assigning for name
		emp[0].name="ram"; 
		emp[1].name="sham"; 
		emp[2].name="ramesh"; 
		emp[3].name="suresh"; 
		emp[4].name="naveen"; 
		//assigning for gender
		emp[0].gender='F';
		emp[1].gender='M';
		emp[2].gender='F';
		emp[3].gender='M';
		emp[4].gender='F';
		print(emp);
		
		constructor c1=new constructor();
	System.out.println("Default value assigned by constructor for byte is "+c1.b);
	System.out.println("Default value assigned by constructor for short is "+c1.s);
	System.out.println("Default value assigned by constructor for int is "+c1.i);
	System.out.println("Default value assigned by constructor for long is "+c1.l);
	System.out.println("Default value assigned by constructor for float is "+c1.f);
	System.out.println("Default value assigned by constructor for double is "+c1.d);
	System.out.println("Default value assigned by constructor for char is "+c1.ch);
	System.out.println("Default value assigned by constructor for string is "+c1.st);
	System.out.println("Default value assigned by constructor for boolean is "+c1.bl);
	}
	public static void print(Employee[] emp) {
		for(int i=0;i<emp.length;i++) {
			System.out.println("Id of emp "+(i+1)+"is "+emp[i].id+"\n");
			System.out.println("name of emp "+(i+1)+"is "+emp[i].name+"\n");
			System.out.println("salary of emp "+(i+1)+"is "+emp[i].salary+"\n");
			System.out.println("Gender of emp "+(i+1)+"is "+emp[i].gender+"\n");
			
			}
	}
	
	
	
	
	}